//分类相关的数据ts类型
export interface ResponseData{
    code: number,
    message: string,
    ok: boolean
}

export interface CategoryObj{
    id: string | number,
    name: string,
    category1Id?: number, //加个问号是可有可无的意思
    category2Id?: number
}

//相应的分类接口返回的数据类型
export interface CategoryResponseData extends ResponseData{
    data: CategoryObj[]
}